﻿<Page
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="ServerViewPage"
	x:Name="Page"
	WindowTitle="Page"
	FlowDirection="LeftToRight"
	Width="640" Height="480"
	WindowWidth="640" WindowHeight="480" xmlns:mchatUI_Controls="clr-namespace:CoreFX.Controls;assembly=mchat">

	<Page.Resources>
		<LinearGradientBrush x:Key="ToolbarBGBrush" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF969696" Offset="0"/>
			<GradientStop Color="#FFA6A6A6" Offset="1"/>
		</LinearGradientBrush>
	
		<!--Simple Tree View - This lays out TreeViewItems within a ScrollViewer -->
		<Style x:Key="SimpleTreeView2" TargetType="{x:Type TreeView}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type TreeView}">
						<Grid>
							<Border x:Name="Border" Background="{DynamicResource NormalBorderBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" CornerRadius="1">
								<ScrollViewer Style="{DynamicResource SimpleScrollViewer}" Focusable="False" Background="{TemplateBinding Background}" Padding="4" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="False">
									<ItemsPresenter/>
								</ScrollViewer>
							</Border>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Page.Resources>

	<Grid x:Name="LayoutRoot">
		<WindowsFormsHost Margin="191,-4,0,-4" x:Name="BrowserHost" AllowDrop="True">		
			<mchatUI_Controls:RichTextIRC/>
		</WindowsFormsHost>
		<TreeView OpacityMask="{x:Null}" Style="{DynamicResource SimpleTreeView2}" Background="{DynamicResource ToolbarBGBrush}" Foreground="#FFF6FBF8" x:Name="Channels" Visibility="Visible" Margin="0,1,0,-2" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Stretch" BorderThickness="0,0,0,0" SelectedValuePath="" HorizontalAlignment="Left" Width="190" />		
	</Grid>
</Page>